// make sure the $ is pointing to JQuery and not some other library
    (function($){
        // add a new method to JQuery

        $.fn.equalHeight = function() {
           // find the tallest height in the collection
           // that was passed in (.column)
            tallest = 0;
            this.each(function(){
                thisHeight = $(this).height();
                if( thisHeight > tallest)
                    tallest = thisHeight;
            });

            // set each items height to use the tallest value found
            this.each(function(){
                $(this).height(tallest);
            });
        }
    })(jQuery);
	
// This function use to display alert

function active(){
		var r=window.confirm("Do you want to make this Programme in-active?");
		if(r==true){
			window.alert("Actived");
		}
		else{
			window.alert("Cancel");
		}
}

//This function use to display alert when user logout

function logout(){
		var r=window.confirm("Do you want to logout of system?");
		if(r==true){
			window.alert("See you again !!!");
			window.open("./loginPage.html");
		}
		else{
			window.alert("Canceled");
		}
}

//Login function

function logindex(){
	
	var ac = document.form1.acc.value;
	var pa = document.form1.pass.value;
	
	if(ac == "admin" && pa == "admin"){
		window.alert("Successfully");
		document.form1.action="index.html";
	}
	else{
		window.alert("Failed ! Please try again");
	}
}